public class Linhai_Test {
    public static void main(String[] args) {
        int k = 0;
        String s = "When you are old \n" +
                "Yeats\n" +
                "When you are old and grey and full of sleep, \n" +
                "And nodding by the fire, take down this book, \n" +
                "And slowly read, and dream of the soft look \n" +
                "Your eyes had once, and of their shadows deep; \n" +
                "How many loved your moments of glad grace, \n" +
                "And loved your beauty with love false or true, \n" +
                "But one man loved the pilgrim Soul in you, \n" +
                "And loved the sorrows of your changing face; \n" +
                "And bending down beside the glowing bars, \n" +
                "Murmur, a little sadly, how Love fled \n" +
                "And paced upon the mountains overhead \n" +
                "And hid his face amid a crowd of stars.";
        String a[] = s.split(" ");
        for(int i = 0;i<a.length;i++) {
            if (a[i].toLowerCase().contains("you")) {
                k++;
            }
        }
        System.out.println(k);
    }
}